package com.yq.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/emp")
public class EmpController {

    @GetMapping("/{id}")
    public String getById(@PathVariable("id") int id){
        return "8002 员工信息 " + id;
    }

    @GetMapping("/list")
    public String list(){
        return "8002所有员工信息";
    }

}
